package com.bw.kf.lib_base.base

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding

abstract class BaseViewActivity<VDB : ViewDataBinding>: AppCompatActivity(){
     lateinit var binding:VDB

    override  fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding= DataBindingUtil.setContentView(this,Layoutid())
        iniView()
        iniData()
    }
    abstract fun iniView()
    abstract fun iniData()
    abstract fun Layoutid(): Int
}
